﻿using System;
using System.Collections.Generic;
namespace XamlMvp
{
    public interface IHydratorBinder
    {
        void Add<T>(IHydratable<T> hydrator);
        void DeHydrate<T>(IDictionary<string, object> state, T obj);
        void DeHydrate<TKind, T>(IDictionary<string, object> state, TKind kind);
        T ReHydrate<T>(IDictionary<string, object> state);
    }
}
